package com.fm.service;

import java.net.Socket;

import static com.fm.service.service.TCPClient;

public class service_ListFile {

    /**
     * 列表
     */
    public static void ListFile(String num) {
        //发送选项标识,建立连接
        Socket socket = TCPClient(num);

        byte[] bytes = new byte[1024];
        int len;
        try {
            while ((len = (socket.getInputStream().read(bytes))) !=-1){
                System.out.println(new String(bytes,0,len));
            }
        }catch (Exception e) {
            e.printStackTrace();
        }
    }

}
